<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
    <fmt:setLocale value="${empty cookie['language'].value?'zh_CN':cookie['language'].value}"/>
	<fmt:setBundle basename="i18n.itilbase"/>
	<c:set var="lang" value="${empty cookie['language'].value?'zh_CN':cookie['language'].value}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="UTF-8">
<title><fmt:message key="i18n.title"/></title>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1" />

<link rel="stylesheet" type="text/css" href="styles/login.css" />
<script type="text/javascript" src="scripts/jquery/jquery-1.4.2.min.js"></script>
<script src="web/js/common.js"></script>
<script type="text/javascript" src="web/js/user.js"></script>
<script type="text/javascript">

	function checkform(){
		if($('#fp_loginName').val()==''){
			alert('登录名不能为空!');
			$('#fp_loginName').focus();
			return false;
		}
		if($('#fp_passwordAnswer').val()==''){
			alert('答案不能为空!');
			$('#fp_passwordAnswer').focus();
			return false;
		}
		if($('#cp1_newPassword').val()==''){
			alert('新密码不能为空!');
			$('#cp1_newPassword').focus();
			return false;
		}
		if($('#cp1_repassword').val()==''){
			alert('确认密码不能为空!');
			$('#cp1_repassword').focus();
			return false;
		}
		if($('#cp1_repassword').val()!=$('#cp1_newPassword').val()){
			alert('两次密码输入不一样!');
			$('#cp1_repassword').focus();
			return false;
		}
	}
</script>

<title><fmt:message key="i18n.findPassword"/>-<fmt:message key="i18n.title"/></title>

</head>
<body>
<div class="mwPageCurrent">
	<p><fmt:message key="i18n.yourlocation"/>：<fmt:message key="i18n.indexPage"/>&gt; > <fmt:message key="i18n.findPassword"/></p>
</div>
<div class="guiWrap">
	<div class="content">
		<form action="registerUser!getBack.action" onsubmit="return checkform()">
			<input type="hidden" name="pageUrl" value="findPasswordSuccess.jsp" >
			<table>
				<tr>
					<td align="right" width="45%"><span style="color:red">*</span>登录名:</td>
					<td align="left"><input name="rubDTO.loginName" id="fp_loginName"  /></td>
				</tr>
				<tr>
					<td align="right" width="45%"><span class="required">*</span>密码级别:</td>
					<td align="left">
						<select name="registerUserDTO.passwordProblem">
							<option value="password1">登录密码</option>
							<option value="password2">交易密码</option>
						</select>
					</td>
				</tr>
				<tr>
					<td align="right" width="45%">问题类型：</td>
					<td>
						<select name="registerUserDTO.passwordProblem">
							<option value="我的生日">我的生日?</option>
							<option value="我父亲的生日">我父亲的生日?</option>
							<option value="我母亲的生日">我母亲的生日?</option>
							<option value="我的出生地">我的出生地?</option>
							<option value="我喜欢的电影">我喜欢的电影?</option>
							<option value="我喜欢的明星">我喜欢的明星?</option>
							<option value="您毕业于那一所大学">您毕业于那一所大学?</option>
						</select>
					</td>
				</tr>
				<tr>
					<td align="right"><span style="color:red">*</span>答案:</td>
					<td align="left"><input name="registerUserDTO.passwordAnswer" id="fp_passwordAnswer"/></td>
				</tr>
				<tr>
	        			<td align="right"><span style="color:red">*</span>新密码：</td>
	        			<td align="left"><input type="password" name="registerUserDTO.password1" id="cp1_newPassword" /></td>
	        		</tr>
	        		<tr>
	        			<td align="right"><span style="color:red">*</span>确认密码：</td>
	        			<td align="left"><input type="password" id="cp1_repassword"  /></td>
	        		</tr>
				<tr>
				<tr>
					<td colspan="2" align="center">
						<input type="submit" value="&nbsp;&nbsp;&nbsp;提&nbsp;&nbsp;交&nbsp;&nbsp;"> 
					</td>								
				</tr>
			</table>
		</form>
	</div>
</div>  

</body>
</html>